<template>
  <div class="special-options">
    <div class="options-header">
      <div class="tabs">
        <div class="tab-item active">{{ title }}</div>
      </div>
    </div>
    <div class="options-content">
      <el-form :model="value" size="mini">
        <el-form-item label="是否显示标题图片">
          <el-radio v-model="value.banner.show" :label="true">是</el-radio>
          <el-radio v-model="value.banner.show" :label="false">否</el-radio>
        </el-form-item>
        <el-form-item label="标题图片">
          <imageUpload v-model="value.banner.imgUrl" :limit="1" value-type="json" />
        </el-form-item>
        <el-form-item label="图片样式">
          <el-radio v-model="value.banner.showStyle" label="12px 12px 0px">卡片式</el-radio>
          <el-radio v-model="value.banner.showStyle" label="0px">通栏显示</el-radio>
        </el-form-item>
        <el-form-item label="图片显示">
          <el-radio v-model="value.banner.imgStyle" label="100% 100%">拉伸</el-radio>
          <el-radio v-model="value.banner.imgStyle" label="cover">填充</el-radio>
        </el-form-item>
        <el-form-item label="列表显示方式">
          <el-radio v-model="value.scroll" :label="true">滚动</el-radio>
          <el-radio v-model="value.scroll" :label="false">换行</el-radio>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script>
export default {
  name: 'SpecialOptions',
  props: {
    title: {
      type: String,
      default: ''
    },
    value: {
      type: Object,
      default: null
    }
  }
}
</script>
<style lang="scss" scoped>
::v-deep .el-upload--picture-card{
  width: auto;
  height: auto;
  line-height: 1;
}
::v-deep .el-upload__tip{
  display: none;
}
::v-deep .el-upload-list--picture-card .el-upload-list__item{
  width: auto;
  height: auto;
  line-height: 1;
  margin: 0;
}
</style>
